package com.web;

import com.pojo.HuiDa;
import com.service.HuiDaService;
import com.util.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HuiDaController {
    @Autowired
    private HuiDaService huiDaService;
    @RequestMapping("/huida")
    public ResultEntity huida(@RequestBody HuiDa huida) {
        return ResultEntity.ok(huiDaService.getHuiDa(huida));
    }
}
